let express = require('express');
let router = express.Router()
let indexController = require('../controller/indexcontroller')

// router.get('/', (req, res) => {

//     res.render('index', {
//         isLogin: req.session.isLogin, // 从 session 中获取用户是否登录
//         user: req.session.user // 从 session 中获取用户信息
//     })
// })

router.get('/', indexController.showIndexPage)
module.exports = router
